import time
from selenium.webdriver.chrome import webdriver
d=webdriver.WebDriver()
d.get('http://192.168.109.131/index.php')
d.maximize_window()
zh=d.find_element_by_link_text('我的账户')
zh.click()
time.sleep(1)
ly=d.find_element_by_link_text('我的留言')
ly.click()
time.sleep(1)
zt=d.find_element_by_name('msg_title')

zt.send_keys('差评') 
time.sleep(2)
llnr=d.find_element_by_name('msg_content')

llnr.send_keys('实物与照片不符')
time.sleep(2)
wen = d.find_element_by_name('message_img')
wen.send_keys(r'D:\Pycharm-work\autoWebTest\1r.jpg')
tj=d.find_element_by_xpath('//input[@type="submit" and @class="bnt_bonus"]')
tj.click()